9. Image Formats

Once you have loaded or created an image, you will undoubtedly want to save it. There are many different methods of storing an image to disk; these different methods are called image formats. You may already be familiar with common image formats such as JPEG (*.jpg), Bitmap (*.bmp) and GIF (*.gif). The best format to use for storing an image depends on what the image will be used for and who needs to be able to view it.

 

What Are Image Formats?

There are dozens image formats in common use today, and Photogenics supports many of them. These different formats arise from many different people solving similar problems in slightly different ways, with varying degrees of popularity.

 

While saving in the majority of file formats will result in a verbatim copy of the image being saved, certain formats discard image information. JPEG is the best-known example of this, and is known as a lossy file format, because image information is “lost” during the conversion process. It makes use of the fact that human vision is not equipped to process all of the subtle color information that can be created in computer images. By eliminating subtle variations in color, JPEG format provides a way to prevent image files from taking up too much space without degrading its appearance too much. This format is useful for storing images that will be viewed on a computer, either from a disk or from the Internet, because they tend to take less time to open and download.  You should not use this format for archiving images, or if there is a chance you may want to edit the image again. Even at the highest quality level, image data is still discarded, and artifacts are introduced. While they may not be visible to the naked eye, further processing, especially sharpening, will make these differences very noticeable. JPEG is the only lossy format supported by Photogenics; all of the others are considered lossless. Note that if you save an image that contains dozens of colors in the XBM format, which only supports two colors, you will still lose image information, but if you were to load the image in, and save it out again several times in the same format, no further information would be lost, unlike JPEG.

 

Photogenics stores images in 24 bit internally. This means it supports 2 to the power of 24 different color combinations, over 16 million colors. This is enough to support photo-realistic images and is commonly referred to as True Color. Some file formats may only support 1 to 8 bits of color depth, allowing only 2 to 256 colors respectively.

 

Formats Supported by Photogenics

The following are brief descriptions of the image formats supported by Photogenics. The information following each filename in parentheses indicates 1) whether this image format is available when loading, saving, or both, 2) how color is stored in that format, and 3) other useful information available – for example, if a format supports layers or alpha channels, it will be noted here.

 

BMP

(Load and Save)

(True Color)

 

BMP is a popular Windows file format.

 

GIF

(Load and Save)

(1 to 8 bit Color)

 

GIF, or Graphics Interchange Format, is a palette mapped image format that is very common on the Internet.  As it only supports a maximum of 256 colors, it is best used for non-photographic images such as those containing text or flat areas of color.  Note that GIF uses LZW compression, which is patented by UniSys, who charge royalties for its use.  You are allowed to produce GIF images using Photogenics and post them on your website without paying a royalty fee, but only because a percentage of the money you paid for Photogenics goes to UniSys. For this reason, the PNG format is rapidly gaining in popularity, though its support in most web browsers is still “maturing.”

 

ILBM

(Loading only)

(True Color)

 

Also known as IFF, which is actually a broad format for storing any kind of data, ILBM is a popular Amiga file format specifically for images, and stands for InterLeavedBitMap.

 

JPEG

(Load and Save)

(True Color)

(Lossy)

 

JPEG stands for Joint Photographic Experts Group, and is the most popular format for viewing photographic images on the web. Note that this is a lossy format, which means that an image saved will have less detail than the original, so is not recommended for storing work that may need to be edited later. Save as JPEG at the end of a project to create a small file for other people to view, but keep the original in some other lossless format such as Photogenics’ own format or PNG. The amount of lossiness can be controlled via the Quality setting. Note that 100% quality does not entirely prevent data loss. A good setting is around 70-90%; anything below that produces unwanted artifacts in the image such as blockyness. Also note that JPEG is not a good format to save images with lots of flat color such as diagrams or text; it is best for continuous tone images such as photos. The Progressive setting produces a file that first displays a blocky low-resolution version of the image that progressively builds up to the final image. It also produces slightly smaller file sizes, but some very old software (circa 1995) cannot view progressive images.

 

Photogenics also supports the Exif extensions to the JPEG format that are commonly used by digital cameras. This means that the thumbnails from digital camera images can be viewed much faster than normal in the Photogenics file requester.

 

TARGA

(Load and Save)

(True Color)

 

Targa is a widely used format for storing all sorts of images. It has options for both compressed and uncompressed images.